package www.test.bean;

public class ShipInfo
{
	private String id ;
	private String shipName;
	private String voyage;
	private String category;
	
	
//	分页
	private int currentPage=1;
	private int pageSize=3;
	private int recordCount;
	
	//排序
	private String sort;
	private String type;
	
//	搜索
	
	private String searchName;
	private String searchVoyage;
	private String searchCategory;
	
	
	
	
	

	public String getSearchName()
	{
		return searchName;
	}

	public void setSearchName(String searchName)
	{
		this.searchName = searchName;
	}

	public String getSearchVoyage()
	{
		return searchVoyage;
	}

	public void setSearchVoyage(String searchVoyage)
	{
		this.searchVoyage = searchVoyage;
	}

	public String getSearchCategory()
	{
		return searchCategory;
	}

	public void setSearchCategory(String searchCategory)
	{
		this.searchCategory = searchCategory;
	}

	public String getSort()
	{
		return sort;
	}

	public void setSort(String sort)
	{
		this.sort = sort;
	}

	public String getType()
	{
		return type;
	}

	public void setType(String type)
	{
		this.type = type;
	}

	public int getPageCount()
	{
		int size = recordCount/pageSize;
		int mod =recordCount%pageSize;
		if(mod!=0)
		
		size++;
		return recordCount==0?1:size;
		
		
	}
	
	public int getRecordCount()
	{
		return recordCount;
	}
	public void setRecordCount(int recordCount)
	{
		this.recordCount = recordCount;
	}
	public int getCurrentPage()
	{
		return currentPage;
	}
	public void setCurrentPage(int currentPage)
	{
		this.currentPage = currentPage;
	}
	public int getPageSize()
	{
		return pageSize;
	}
	public void setPageSize(int pageSize)
	{
		this.pageSize = pageSize;
	}
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getShipName()
	{
		return shipName;
	}
	public void setShipName(String shipName)
	{
		this.shipName = shipName;
	}
	public String getVoyage()
	{
		return voyage;
	}
	public void setVoyage(String voyage)
	{
		this.voyage = voyage;
	}
	public String getCategory()
	{
		return category;
	}
	public void setCategory(String category)
	{
		this.category = category;
	}
	

}
